package com.itheima.ZuoYe04;

public class Student {
    private String name;
    private String sex;
    private int age;
    private String cat;
    void show(){
        System.out.print("我叫"+name+"年龄"+age+"我有一只叫"+cat+"的猫");
    }

    public Student() {
    }

    public Student(String name, String sex, int age, String cat) {
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.cat = cat;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getCat() {
        return cat;
    }

    public void setCat(String cat) {
        this.cat = cat;
    }
}
